# Updated 9/27/2016 to include the new test program to exercise the 
# insert/removal code. This happened in LMShid 1.03
all : test LMShid.o

# How we create LMShid.o
LMShid.o : LMShid.c LMShid.h
	gcc -o LMShid.o -c LMShid.c

# The final output is one or more linked object files
test : test.c LMShid.o LMShid.h
#	gcc -o test -lm -lpthread -lusb test.c LMShid.o /usr/lib/libhid.a
#	gcc -o test -lm -lpthread -lusbl test.c LMShid.o
#	gcc -o test2 -lm -lpthread -lusbl test2.c LMShid.o
	gcc test.c -o test LMShid.o -lm -lpthread -lusb 

clean :
	rm -f LMShid.o
	rm -f test
	rm -f test2
